Uec3.EmployeeEWindow = Ext.extend(Ext.util.Observable,{
	
   init : function(config) {
	this.initComponent(config);
	this.initEvent(config);
	return [this.navigation, this.employee_grid];
  },

    initComponent : function(config) {
	this.getAndRestoreEmployee(config);
	this.componentInitsEmployee(config);
 },
  
	constructor : function(config) {
    this.addEvents({show:true});
    this.module = config.module;
    this.desktop = this.module.app.getDesktop();
    this.win = this.desktop.getWindow('employee');
    if (!this.win) {
    this.win = this.desktop.createWindow({
		id : 'employee',title : '员工列表',
		width : document.body.clientWidth * 1.0,height : document.body.clientHeight * 1.0,
		iconCls : 'acc-icon',shim : false,closable : true,animCollapse : false,constrainHeader : true,
		maximizable : true,maximized : true,taskbuttonTooltip : "员工列表",layout : "border",resizable : true,
		tools : [{id : 'refresh',handler : Ext.emptyFn,scope : this}],
		items : [this.init(config)]
	});
}},
	browseEmployee : function(grid,rowIndex, colIndex, item, e) {		
		var record =this.employee_ds.getAt(rowIndex);
		this.employee_form.getForm().loadRecord(record);				
		this.employee_win.show();
		this.employee_win.buttons[0].hide();
		this.employee_win.buttons[1].hide();
		this.employee_win.setTitle('浏览员工-按Esc退出');	
		this.maskTopField.show();
	},

	editEmployee : function(grid, rowIndex, colIndex, item, e) {		
		var record = this.employee_ds.getAt(rowIndex);		
		this.employee_form.getForm().loadRecord(record);
		this.employee_win.show();
		this.employee_win.buttons[0].show();
		this.employee_win.buttons[1].show();
		this.employee_win.setTitle('编辑员工-按Esc退出');
		this.employee_win.buttons[0].setText('更新');
		this.employee_form.setDisabled(false);
		this.sexRadio.setDisabled(true);	
		this.birthday.setDisabled(true);		
		//departmentLookUp.initializeValue({'name':record.get("name"),'pyCode':record.get("pyCode"),'id':record.get("id")});
	},

	deleteEmployee : function(grid, rowIndex, colIndex, item, e) {	
		var record =this.employee_ds.getAt(rowIndex);
		this.middleRecord = record;
		this.evaluationForm.getForm().loadRecord(record);
		this.evaluation_win.show();
	},
	revertEmployee:function(grid, rowIndex, colIndex, item, e){
		var record =this.employee_ds.getAt(rowIndex);
		var form=this.sendEmailForm.getForm();
		form.findField("email").setValue(record.get("userEmail"));
		form.loadRecord(record);
		this.sendEmail_win.show();
		form.findField("email").setReadOnly(true);
		form.findField("email").el.dom.style.color="#aaaaaa";
	},	   
	saveEmployee:function(employee_win,employee_form,employee_ds){					
			if (!employee_form.getForm().isValid()) {return;}
			var formValues = employee_form.getForm().getValues();
			var jsonAll = Ext.encode(formValues);
			this.employee_ajax.request({
						url : Uec3.App.Constants.homeUrl+ '/employee/edit_EmployeeDate!update.do',
						success : function(res) {
							var result = Ext.decode(res.responseText);						
							if (result.success == "OK") {
                                Ext.Msg.alert('提示', "更新成功");
								employee_win.hide();
								employee_ds.reload();
							} else {Ext.Msg.alert("提示",result.failure,function(){employee_win.hide(); employee_ds.reload();});}
						},
						failure : function(res) {Ext.Msg.alert("错误提示",action.result.failure,function(){});},
						params : {jsonAll : jsonAll}
					});		
		},	
		
	sendEmail:function(sendEmailForm,sendEmail_win){	
				if (!this.sendEmailForm.getForm().isValid()){Ext.Msg.alert("提示", "请填写必须项");return;}
			    var formValues = this.sendEmailForm.getForm().getValues();
                var jsonAll = Ext.encode(formValues);
			    this.email_ajax.request({
						url : Uec3.App.Constants.homeUrl+ '/company/invitation!empInvite.do',
						success : function(res) {
							var result = Ext.decode(res.responseText);
							if (result.success == "OK") {this.sendEmail_win.hide();Ext.Msg.alert('提示', "发送邀请员工成功");}
							else {Ext.Msg.alert("提示",result.failure);}
					},
					failure : function(res) {Ext.Msg.alert('提示', '网络出现异常,请重先发送');},
					params : {jsonAll : jsonAll},
                    scope:this
			});
	},	
		
	openLoginHistoryWindow : function(grid, rowIndex, colIndex, item, e) {
		var record =this.employee_ds.getAt(rowIndex);
	    var userId = record.get('userId');
		this.desktop.launchWindowByParam("employeeLoginHistory", {id : userId,winId : userId});
	},

	openHireHistoryWindow : function(grid, rowIndex, colIndex, item, e) {
		var record =this.employee_ds.getAt(rowIndex);
	    var id = record.get('id');
		this.desktop.launchWindowByParam("hireHistory", {id : id,winId : id});
	},

	show:function(){this.win.show();},
   
    getAndRestoreEmployee:function(config) {
			this.storeDepartment = new Ext.data.Store({
						proxy : new Ext.data.HttpProxy({url : Uec3.App.Constants.homeUrl+ '/department/base!findByCompanyId.do'}),
						reader : new Ext.data.JsonReader({root : 'root',fields : [{name : 'id'},{name : 'name'},{name : 'pyCode'}]})
					});
			this.employee_ds = new Ext.data.Store({
						proxy : new Ext.data.HttpProxy({url : Uec3.App.Constants.homeUrl+ '/employee/edit_EmployeeDate!query.do'}),
						baseParams : {start : 0,limit : 20},
						reader : new Ext.data.JsonReader({
									totalProperty : 'totalProperty',
									root : 'root'
								}, [
										{name : 'id',type:'int'}, 
										{name : 'userId',type:'int'},
										{name : 'userName',type:'string'}, 
										{name : 'userBirthday',type : 'date',dateFormat:'Y-m-d H:i:s'	},
										{name : 'userIdent'},
										{name : 'userMemo'},
										{name : 'userEmail'},
										{name : 'userSex',type:'int'},
										{name : 'companyId',type:'int'}, 
										{name : 'name'},	
										{name : 'code'},
									    {name : 'departmentName'}, 
									    {name : 'departmentId'},
									    {name : 'memo'}, 
									    {name : 'gmtHire',type : 'date',dateFormat:'Y-m-d H:i:s' },
									    {name : 'gmtModify',type : 'string'}, 
									    {name : 'isDelete',type : 'int'}
								]),
						remoteSort : true,
						sortInfo : {field : "id",direction : "asc"}
					});
		},
		
	componentInitsEmployee : function(config) {
			this.employee_ajax=new Ext.data.Connection();
			this.email_ajax =new Ext.data.Connection();
			this.store_departmentLookUp = new Ext.form.LookupBox2({
						store : this.storeDepartment,displayField : 'name',
						lookupField : 'pyCode',fieldLabel : '部门',
						valueField : 'id',hiddenName : 'departmentId',
						typeAhead : false,mode : 'local',
						anchor : '98%',triggerAction : 'all',
						emptyText : '请选择部门...',selectOnFocus : true,
						queryDelay : 10,typeAheadDelay : 10,pageSize : 6,
						autoDestory : true,queryParam : 'keyword',app : this.module.app,
						triggerTags : [{moduleId : 'departmentQuery',triggerClass : 'x-form-search-trigger'}, {moduleId : 'departmentAdd'}],
						listeners : {select : function() {},scope:this
						}
					});
					
			this.departmentLookUp = new Ext.form.LookupBox2({
						store : this.storeDepartment,displayField : 'name',lookupField : 'pyCode',
						fieldLabel : '部门',valueField : 'id',hiddenName : 'departmentId',
						typeAhead : false,mode : 'local',anchor : '98%',
						triggerAction : 'all',emptyText : '请选择部门...',
						selectOnFocus : true,queryDelay : 10,typeAheadDelay : 10,
						pageSize : 6,autoDestory : true,queryParam : 'keyword',app : this.module.app,
						triggerTags : [{moduleId : 'departmentQuery',triggerClass : 'x-form-search-trigger'}, {moduleId : 'departmentAdd'}],
						listeners : {select : function() {},scope:this}
					});		
					
		    this.storeDepartment.load({params : {start : 0,limit : 6}})
                   this.sexRadio = new  Ext.form.RadioGroup({fieldLabel : '性别',name : 'userSex',disabled:true,width : 150,
									items : [
									{boxLabel : '男',name : 'sex',inputValue : '1'},
									{boxLabel : '女',name : 'sex',inputValue : '0'}
								]
							});
								
			this.birthday=new Ext.form.DateField({xtype : 'datefield',fieldLabel : '出生日期',disabled:true,name : 'userBirthday',anchor : '88%',editable:false,format:'Y-m-d'});																	
					// 初始化目录
					var tab = new Ext.TabPanel({
						width : 225,region : 'center',activeTab : 0,
						items : [{
									title : '目录',layout : 'accordion',
									items : [{
												collapsible : true,title : '删除记录',xtype : 'treepanel',width : 225,lines : false,
												height : document.body.clientHeight* 1.0,autoScroll : true,split : true,
												loader : new Ext.tree.TreeLoader(),
												root : new Ext.tree.AsyncTreeNode({
															expanded : true,
															children : [
																  {text : '全部',value : '2',leaf : true},
																  {text : '未删除',value : '0',leaf : true}, 
																  {text : '已删除',value : '1',leaf : true}]
														}),
												rootVisible : false,scope:this,
												listeners : {
													click : function(child) {
														var v = {isDelete : child.attributes.value};
														var jsonAll = Ext.encode(v);
														this.employee_ds.baseParams = {start : 0,limit : 20,jsonAll : jsonAll}
														this.employee_ds.reload();
													},scope:this
												}
											}]
								}]
					});

					this.navigation = new Ext.Panel({
								title : '导航与搜索',region : 'west',split : true,width : 225,
								minSize : 225,maxSize : 225,collapsible : true,lines : false,
								layout : 'fit',margins : '3 0 3 3',cmargins : '3 3 3 3',
								items : [tab]
							});						
			// 初始化employee_grid表格对象		
			var employee_colModel = new Ext.grid.ColumnModel([
					new Ext.grid.RowNumberer(),
              {
				header : "操作",xtype:'anchorcolumn',width : 250,dataIndex : 'act',
				items:[{
					text:"查看",scope:this,permissionId:20,handler:this.browseEmployee
				},{
					text:"编辑",scope:this,permissionId:21,handler:this.editEmployee,
					getVisiblity:function(v, meta,record,rowIndex,colIndex,store){			            	       
					      var isDelete = record.get("isDelete");	       
					      if(isDelete==1){return false;}				   
						  return true;
					}
				},{
					text:"删除",scope:this,permissionId:21,handler:this.deleteEmployee,
					getVisiblity:function(v, meta,record,rowIndex,colIndex,store){			            	       
					      var isDelete = record.get("isDelete");	   
					      if(isDelete==1){return false;}
					      return true;
					}
				},{
					text:"恢复",scope:this,permissionId:21,handler:this.revertEmployee,
					getVisiblity:function(v, meta,record,rowIndex,colIndex,store){			            	       
					      var isDelete = record.get("isDelete");	       
					      if(isDelete==1){return true;}				   
						  return false;
					}
				}]	
				}, {    xtype:'anchorcolumn',header : "工作记录", width : 100,dataIndex : 'hireHistory',
						items:[{
						text:"工作记录",scope:this,permissionId:151,handler:this.openHireHistoryWindow
						}]
					}, {
						xtype:'anchorcolumn',header : "登录记录", width : 100, dataIndex : 'loginHistory',
						items:[{
						text:"登录记录",scope:this,permissionId:7,handler:this.openLoginHistoryWindow,
						getVisiblity:function(v, meta,record,rowIndex,colIndex,store){			            	       
					    var isDelete = record.get("isDelete");	   
					    if(isDelete==1){return false;}
					    return true;
					}
						}]
					}, {
						header : "员工姓名", width : 120, sortable : true,dataIndex : 'name'
					}, {
						header : "工号", width : 100, sortable : true, dataIndex : 'code'
					}, {
						header : "部门", width : 100, dataIndex : 'departmentName'
					},{
						header : "入职时间",width : 150,dataIndex : 'gmtHire',
						renderer:Ext.util.Format.dateRenderer('Y-m-d H:i:s')
					}, {
						header : "修改时间",width : 150,dataIndex : 'gmtModify'
					}, {
						header : "备注",width : 100,dataIndex : 'memo',id : 'memo'
					}
			]);
			// create the Grid
			this.employee_grid = new Ext.grid.GridPanel(			    
			    	{
						region : 'center',iconCls : 'icon-grid',enableColumnMove : false,enableColumnMoveResize : false,
						stripeRows : true,autoExpandColumn : 'memo',height : 500,loadMask : {msg : "...加载数据中"},
						store : this.employee_ds,
						cm : employee_colModel,
						sm : new Ext.grid.RowSelectionModel({singleSelect : true}),
						viewConfig : {columnsText : '显示的列',scrollOffset : 20,sortAscText : '升序',sortDescText : '降序'},
						tbar : new Ext.app.ModuleToolbar(['-',{
							text : '发送email增加员工',permission:21,scope:this,
							icon : Uec3.App.Constants.deskUrl+ "/resources/images/default/dd/drop-add.gif",
							handler : function() {
							if (!(this.sendEmailForm.getForm().getEl())) {this.sendEmailForm.getForm().reset();
							} else {this.sendEmailForm.getForm().getEl().dom.reset();}
							  this.sendEmail_win.show();
							}
						}, '-']),
						bbar : new Ext.PagingToolbar({
									pageSize : 20,store : this.employee_ds,displayInfo : true,display : true,displayMsg : '第 {0} - {1} 条  共 {2} 条',emptyMsg : "没有记录",items : []
								})
					});
			// 初始化表单对象
			this.employee_form = new Ext.form.FormPanel({
						labelAlign : 'right',labelWidth : 60,frame : true,width : 800,height : 420,url : '',
						items : [						   
						       {xtype:'fieldset',layout : 'form',title:'员工注册资料',
					     items :[								         								         	
				      {xtype : 'panel',layout : 'column',	items : [		
				           {defaultType : 'textfield',columnWidth : .5,layout : 'form',border : false,
					              items : [
						            {fieldLabel : ' 注册邮箱',name : 'userEmail',readOnly : true,anchor : '88%',vtype : 'email',style:"color:#aaaaaa;"},
						            {fieldLabel : '注册名',style:"color:#aaaaaa;",readOnly : true,name : 'userName',anchor : '88%'},
						            {fieldLabel : '身份证',style:"color:#aaaaaa;",readOnly : true,name : 'userIdent',regex : /(^\d{15}$)|(^\d{17}([0-9]|X|x)$)/,
						             regexText : '输入的身份证号长度不对，或者号码不符合规定！15位号码应全为数字，18位号码末位可以为数字或x,X',anchor : '88%'}]},  
					       {columnWidth : .5,layout : 'form',defaultType : 'textfield', items : [{xtype:'panel',height:25},this.sexRadio,this.birthday]}
				       ]}, 
				     {name : 'userMemo',height:100,readOnly : true,preventScrollbars : true,xtype : 'textarea',fieldLabel : '备注',style:"color:#aaaaaa;",anchor : '98%',emptyText : ''}
				         ]
						         
			},					        					         
			{
	        	  xtype:'fieldset',layout : 'form',title:'雇员资料',
	              items :[{
	            		xtype : 'panel',layout : 'column',
	            		items : [{
	            											columnWidth : .5,layout : 'form',defaultType : 'textfield',
	            											items : [
	            												      {name : 'id',fieldLabel : 'ID',xtype : 'hidden'},
	            												      {name : 'userId',fieldLabel : 'ID',xtype : 'hidden'}, 
	            												      {name : 'companyId',fieldLabel : '公司ID',xtype : 'hidden'},
	            													  {name : 'name',anchor : '88%',fieldLabel : '员工姓名',maxLength:"30",maxLengthText:"最大长度为30位",allowBlank:false,blankText:"员工姓名姓名不允许为空"},
	            													  {name : 'code',fieldLabel : '工号',	anchor : '88%',maxLength : 8,maxLengthText : "员工工号长度不大于8位",regex : /^[0-9]+$/,regexText : '请输入阿拉伯数字格式'}					
	            											]
	            										},
	            										{
	            											columnWidth : .5,layout : 'form',defaultType : 'textfield',
	            											items : [
	            											this.departmentLookUp,
	            											{emptyText : '',xtype : 'datefield',name : 'gmtHire',format : 'Y-m-d H:i:s',width : 160,anchor : '88%',fieldLabel : '入职时间'}										
	            											]
	            										}]
	            							},{xtype:"hidden",name : 'gmtModify'},
	            							  {name : 'memo',fieldLabel : '备注',xtype : 'textarea',height:100,preventScrollbars : true,emptyText : '',anchor : '98%',maxLength:"60",maxLengthText:"最大长度为60位"}
	            					]				         
			      }
			]
					});
				
		    this.sendEmailForm = new Ext.form.FormPanel({
						labelAlign : 'right',labelWidth : 60,frame : true,width : 800,height : 270,url : '',
						items : [				
					    {xtype:'fieldset',layout : 'form',border:false,
						items :[{xtype : 'panel',layout : 'column',	items : [
				        {defaultType : 'textfield',columnWidth : .5,layout : 'form',border : false,
					    items : [
					    {name : 'id',fieldLabel : 'ID',xtype : 'hidden'}, 
                        {xtype : 'textfield',name : 'email',vtype : 'email',anchor : '98%',vtypeText : '请填写正确的邮箱格式',
						allowBlank : false,blankText : '邮箱不能为空',fieldLabel : '填写email',maxLength:"30",maxLengthText:"最大长度为30位"},
					    {name : 'name',anchor : '98%',fieldLabel : '员工姓名',maxLength:"30",maxLengthText:"最大长度为30位",allowBlank:false,blankText:"员工姓名姓名不允许为空"},
					    {name : 'code',fieldLabel : '工号',	anchor : '98%',maxLength : 8,maxLengthText : "员工工号长度不大于8位",regex : /^[0-9]+$/,regexText : '请输入阿拉伯数字格式'}]
				}, 
					{columnWidth : .5,layout : 'form',defaultType : 'textfield',
					        items : [
					        	  {xtype:'panel', height:25	 },
							      this.store_departmentLookUp,
	            				{emptyText : '',xtype : 'datefield',name : 'gmtHire',format : 'Y-m-d',anchor : '98%',fieldLabel : '入职时间'}]
				     }
				]}, 
				{name : 'memo',height:100,preventScrollbars : true,xtype : 'textarea',fieldLabel : '备注',maxLength:"60",maxLengthText:"最大长度为60位",anchor : '98%',emptyText : ''}]				         
		   	     }				
			           ]
					});
			// 评价evaluationForm
			this.evaluationForm = new Ext.form.FormPanel({
						labelAlign : 'right',labelWidth : 60,frame : true,width : 800,autoHeight : true,url : '',
						items : [{
									layout : 'column',
									items : [{
												columnWidth : .5,layout : 'form',defaultType : 'textfield',
												items : [
													{name : 'id',fieldLabel : 'ID',xtype : 'hidden'}, 
													{name : 'name',fieldLabel : '员工姓名',style : {color : '#aaaaaa'},readOnly : true,anchor : '88%'}]
											},
										  {
												columnWidth : .5,layout : 'form',defaultType : 'textfield',
												items : [
													{name : 'code',fieldLabel : '员工工号',style : {color : '#aaaaaa'},readOnly : true,anchor : '88%'}
												]}]
								     },
								{name : 'evaluation',fieldLabel : '员工评价',xtype : 'textarea',preventScrollbars : true,anchor : '98%',maxLength:"30",maxLengthText:"最大长度为30位"}
						  ]
					});
			// 增加员工
			this.sendEmail_win = this.desktop.createWindowNoTask({
				layout : 'fit',closeAction : 'hide',width : 600,autoHeight : true,
				title : '增加员工-按Esc退出',collapsible : true,
				manager : this.desktop.windows,constrait : true,
				modal : true,draggable : true,plain : true,header : true,
				resizable : false,maximizable : false,
				items : [this.sendEmailForm],
				buttons : [{
					text : '发送邮件',iconCls:"icon-sendEmail",scope:this,
					handler : function(){this.sendEmail(this.sendEmailForm,this.sendEmail_win);}}, 
					{text : '关闭',iconCls : "icon-close",scope:this,handler : function() {this.sendEmail_win.hide();}}],
				    buttonAlign : 'center'
			});
			// 初始化window对象
			this.evaluation_win = new Ext.Window({
				layout : 'fit',closeAction : 'hide',width : 600,autoHeight : true,title : '删除员工-按Esc退出',
				collapsible : true,constrait : true,modal : true,draggable : true,plain : true,header : true,resizable : false,
				items : [this.evaluationForm],
				buttons : [{
					text : '确定删除',scope:this,
					handler : function() {
						if (!this.evaluationForm.getForm().isValid()) {Ext.Msg.alert("提示", "请填写必须项");return;}
						Ext.Msg.confirm('信息', '确定要删除?', function(btn) {
							if (btn == 'yes') {
								this.employee_grid.loadMask.show();
								var id = this.evaluationForm.getForm().findField('id').getValue();
								var evaluation = this.evaluationForm.getForm().findField('evaluation').getValue();
								Ext.Ajax.request({
									url : Uec3.App.Constants.homeUrl+ '/employee/edit_EmployeeDate!delete.do',
									success : function(res) {
										var result = res.responseText;
										if (!result) {
											this.employee_grid.loadMask.hide();this.employee_ds.remove(this.middleRecord);
											this.employee_ds.reload();this.evaluation_win.hide();Ext.Msg.alert("提示", "删除成功");
										} else {this.employee_grid.loadMask.hide();Ext.Msg.alert("提示",Ext.decode(result).failure);}},
									failure : function(res) {this.employee_grid.loadMask.hide();Ext.Msg.alert("提示", '网络异常,请重先请求');},
									params : {id : id,evaluation : evaluation},
									scope:this
								});}},this);
					   }
				},{
					text : '关闭',iconCls : "icon-close",scope:this,handler : function() {this.evaluation_win.hide();}
				}],
				buttonAlign : 'center'
			});
			// 初始化window对象
			this.employee_win = this.desktop.createWindowNoTask({
				layout : 'fit',closeAction : 'hide',width : 660,autoHeight : true,
				title : '更新员工-按Esc退出',collapsible : true,constrait : true,
				manager : this.desktop.windows,constrainHeader : true,modal : true,draggable : true,
				plain : true,header : true,resizable : false,maximizable : false,
				items : [this.employee_form],
				buttons : [{
					text : '更新',iconCls : "icon-edit",scope:this,
					handler : function() {this.saveEmployee(this.employee_win, this.employee_form, this.employee_ds);	}
				}, {
					text : '关闭', iconCls : "icon-close", scope:this, handler : function() {this.employee_win.hide();}
				}],
				buttonAlign : 'center'
			});
		},
	initEvent:function(){	
		this.on('show', function() {
		this.employee_ds.load({callback : function(records, options, success) {
		if (success) {} else {Ext.Msg.alert('提示', "网络连接异常...请稍候再试");}}});}, this, {single : true});
		
		    this.email_ajax.on('beforerequest', function() {Ext.MessageBox.wait("发送邮件中...", "提示");});
		    
			this.email_ajax.on('requestcomplete', function() {Ext.MessageBox.hide();});

			this.employee_ajax.on('beforerequest', function() {Ext.MessageBox.wait("更新数据中...", "提示");});

			this.employee_ajax.on('requestcomplete', function() {Ext.MessageBox.hide();;});

		    this.sendEmail_win.on("show",function(){
		  			this.key_map = new Ext.KeyMap(this.sendEmail_win.id,
		  			{key: 13,scope:this,fn: function(){this.sendEmail(this.sendEmailForm,this.sendEmail_win);}})},this); 			
			
		  	this.sendEmail_win.on("hide",function(){this.key_map.setDisabled(true);},this);
		  			
			this.employee_win.on("show",function(){				
					this.keymap = new Ext.KeyMap(this.employee_win.id, {
				    key: 13, // or Ext.EventObject.ENTER
				    fn: function(){this.saveEmployee(this.employee_win, this.employee_form, this.employee_ds);},
				    scope: this
				});	
	    		this.maskTopField = new Ext.LoadMaskJUPIT(this.employee_form.id);
			},this,{singe:true});
			
			this.employee_win.on("hide",function(){this.keymap.setDisabled(true);if(this.maskTopField){this.maskTopField.hide()};},this);}
});

Uec3.EmployeeWindow  = Ext.extend(Ext.app.Module, {
	id : 'employee',
	type : 'common/employee',
	init : function(initParams) {},
	constructor : function(config) {Uec3.EmployeeWindow.superclass.constructor.call(this);},
	initEvent : function(params) {this.win.fireEvent("show");},
	createWindow : function(params) {
	  this.win = new Uec3.EmployeeEWindow({module : this,params : params});
	  this.initEvent(params);
      this.win.show();
	}
});